package kr.hkit.powerjava.chapter14.windowbuilder;

import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.HeadlessException;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

class MyFrameUI extends JFrame{

	public MyFrameUI() throws HeadlessException {
		super();
		init();
	}

	private void init() {
		setTitle("EmployeeUI");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JPanel panel=new JPanel();
		panel.setLayout(new BorderLayout());
		add(new JLabel("사원정보"),BorderLayout.NORTH);
		panel.setLayout(new GridLayout());
		add(new JButton("사원번호:"));
		setVisible(true);

	}
	
}





public class EmployeeUI {
public static void main(String[] args) {
	MyFrameUI f= new MyFrameUI();
}
}
